# coding=utf-8
# 1列表
list1 = []
list1.append(1)
list1.append("nice hat")
list1.append("python")
print(list1)
list2 = [1, "nice hat", "python"]
print(list1)

# 数组 仅可存放一种数据类型

# 2字典 Dictionary 字典存放无需键值对，其它语言中称为关联数组（associative arry、map
dic = {}
dic['dog'] = 'sebastian'
dic['cat'] = 'tom'
dic
print(dic)

dic2 = {1: 33, 'dog': 'dalmatian'}
print(dic2)

# 3集合Set
list3 = [1, 2, 3, 3, 67]
s1 = set(list3)
s1
print(s1)

list4 = [1, 2, 3, 3, 68]
s2 = set(list4)
s2
print(s2)

print('s1-s2:{0}'.format(s1-s2))
print('s2-s1:{0}'.format(s2-s1))
print('s1|s2:{0}'.format(s1|s2))
print('s1&s2:{0}'.format(s1&s2))

exit()
